﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    [Table("member_coupon")]
    public class MemberCouponEntity:BaseEntity
    {
        /// <summary>
        /// 优惠劵id
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long coupon_id { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? member_id { get; set; }

        public DateTime? used_time { get; set; }

        public DateTime? create_time { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? order_id { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long order_sn { get; set; }

        public string member_name { get; set; }

        public string title { get; set; }

        public decimal? coupon_price { get; set; }

        public decimal? coupon_threshold_price { get; set; }

        public DateTime? start_time { get; set; }

        public DateTime? end_time { get; set; }

        public int? used_status { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long shop_id { get; set; }

        public string shop_name { get; set; }

        public string use_scope { get; set; }

        public string scope_id { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? tenant_id { get; set; }

        public string note { get; set; }

        public int? type { get; set; }

        public int? use_type { get; set; }
    }
}
